home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
ART
/
ScanKeeper 1.2 ppc.sit
/
ScanKeeper 1.2 ppc
/
ScanKeeper AppleScript R馭s
next >
Wrap
Text File
|
1997-07-16
|
2KB
|
65 lines
(*-------------------------------------------
File: ScanKeeper Script Ref
Author: Jean Penicaud
E-mail: jeanpe@club-internet.fr
Origin: This file is a component of ScanKeeper application, and must
be delivered with the application.
Purpose: This file gives you samples way to drive the application
with AppleScript. This list isn't complete but give you an overview
of all capabilities of the sofware.
Revision: July 1997
Added rotation to dictionary
---------------------------------------------
*)
tell application "ScanKeeper"
(* ------- Rotations samples -------
-- Rotate document left
rotateleft document 1
-- Rotate document right
rotateright document 1
-- Rotate 180 。 image document
flipimage document 1
*)
(* ------- Open / Save samples -------
set fichier to "Macintosh HD:Images:article Next SVM.TIFF"
open fichier
open file "External HD:Book:Images:Wargame.PICT"
save document "Wargame.PICT" in "Macintosh HD:Desktop folder:Test.tiff" as TIFF4
*)
(* ------- Deal with window -------
close window 1
get name of window 1
get selection of window 2
set selection of window 2 to {0, 0, 0, 0}
set zoomed of window 2 to true
set zoomed of window 1 to false
*)
(* ------- Deal with document -------
open document "CD-ROM Archive95:Images:JO du 23/10/95.TIFF"
get name of document 1
get selection of document 1
set selection of document "JO du 23/10/95.TIFF" to {416, 696, 920, 1144}
set selection of document 1 to {0, 0, 600, 600}
print document "JO du 23/10/95.TIFF"
print document 2
save document 1 in "Internal HD:Desktop folder:My Image TIFF" as TIFF3
save document 1 in file "Internal HD:Desktop Folder:Image PICT" as PICT
save document 1 in "Internal HD:Desktop folder:Image G4" as TIFF4
close document 1
*)
(* ------- Deal with scanner -------
-- Scan a new document
scan
-- Scan and save in file as specified format
scanandsave in file "Internal HD:Desktop Folder:Today Scan " as TIFF4
*)
end tell